package com.zoo.diannaopeijian.service;

import com.zoo.diannaopeijian.domain.ShipmentItem;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 出货服务
 */
public interface ShipmentService {
    /**
     * 出货商品
     * @param staffId
     * @param shipmentItemList 出货项
     * @return
     */
    @Transactional
    boolean shipmentWares(Integer staffId, List<ShipmentItem> shipmentItemList);

    /**
     * 重出货商品
     * @param shipmentItemList 出货项
     * @param shipmentRecordId
     * @return
     */
    @Transactional
    boolean reShipmentWares(List<ShipmentItem> shipmentItemList, Integer shipmentRecordId);
}
